import { http } from '@/utils/request.js'

const information={
    list:(data)=>{
        return http.get('/system/subjectContract/list',data)
    },
    view:(subjectcontractId)=>{
        return http.get(`/system/subjectContract/${subjectcontractId}`)
    },
    update:(data)=>{
        return http.put(`/system/subjectContract`,data)
    },
    add:(data)=>{
        return http.post(`/system/subjectContract`,data)
    },
    delete:(subjectcontractId)=>{
        return http.delete(`/system/subjectContract/${subjectcontractId}`)
    },
    listSubmit:(data)=>{
        return http.get('/system/submitCompany/list',data)
    },
    addSubmit:(data)=>{
        return http.post(`/system/submitCompany`,data)
    },
    viewSubmit:(submitcompanyId)=>{
        return http.get(`/system/submitCompany/${submitcompanyId}`)
    },
    updateSubmit:(data)=>{
        return http.put(`/system/submitCompany`,data)
    },
    deleteSubmit:(submitcompanyId)=>{
        return http.delete(`/system/submitCompany/${submitcompanyId}`)
    },
    listDistri:(data)=>{
        return http.get('/system/distributor/list',data)
    },
    addDistri:(data)=>{
        return http.post(`/system/distributor`,data)
    },
    viewDistri:(distributorId)=>{
        return http.get(`/system/distributor/${distributorId}`)
    },
    updateDistri:(data)=>{
        return http.put(`/system/distributor`,data)
    },
    deleteDistri:(distributorId)=>{
        return http.delete(`/system/distributor/${distributorId}`)
    },
}

export default information